package wang.lcs.pay.ali.dto;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * <pre>
    var a="";$(document.getElementsByTagName("table")[0]).find("tr").each(function(){
     var td=$(this).find("td:eq(0)").text(); if(!td) return;
     var tds = "";
     $.each(td.split("_"), function(i,o){ tds+=o[0].toUpperCase() + o.substr(1); });
     var st=($(this).find("td:eq(2)").text()||'');
     //a += "// "+ $(this).find("td:eq(5)").text().replace(/\n/g,'') +" \n";
     //a += "// 示例值: "+ $(this).find("td:eq(4)").text().replace(/\n/g,'') +" \n";
     //a += '// @JsonProperty("'+td+'") \n ';
     a += '/';
     a += '**\n'; 
     a += ' * 格式: ' + st + '<br/>\n';
     a += ' * ' + $(this).find("td:eq(4)").text() + "\n";
     a += ' **';
     a += '/\n';
     a += 'public String get' + tds + '(){ return map.get("'+ td +'");}\n';
     a += 'public void set' + tds + '(String val){ map.put("'+ td +'", val);}\n';
    }); console.log(a); 0;
 *
 **/
/**
 * 在网页控制台运行JS 自动生成代码
 * 
 * @author changshu.li
 *
 */
public abstract class AliModel {

    transient final Map<String, String> map;

    public AliModel(Map<String, String> map) {
        this.map = map;
    }

    public Map<String, String> getNewMap() {
        return new HashMap<>(map);
    }
}
